package mipo.top.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private String keyword;
    private Integer currentPage;
    private Integer pageSize;

    public Integer getBegin(){
        return (this.currentPage-1)*this.pageSize;
    }
}
